<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.6/vue.min.js"></script>
<style>
    #d1{
        color:red;
    }
</style>
<body>
    <div class="bg" id="app">
        hello 12
       {{msg}}
        {{count}}
        <div v-html="template" v-bind:id="d1">
            {{template}}
        </div>
        <a v-bind:href="url"  >百度</a>
        <a :href="url1"  >百度</a>
        <button type="button" v-on:click="submit()">button</button>
    </div>

</body>
<script>
    new Vue({
        el:'.bg',
        data:{
            msg:'xiaoxiao',
            count:0,
            d1:'d1',
            url:"http://www.baidu.com",
            url1:"http://www.imooc.com",
            template:"<div> hello11 </div>",
        },
        methods:{
            submit:function(){
                this.count++;
            },
        },
    });
</script>
</html>



























